package com.hornsun.domain.dbo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MedicalRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MedicalRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMemberGuidIsNull() {
            addCriterion("member_guid is null");
            return (Criteria) this;
        }

        public Criteria andMemberGuidIsNotNull() {
            addCriterion("member_guid is not null");
            return (Criteria) this;
        }

        public Criteria andMemberGuidEqualTo(String value) {
            addCriterion("member_guid =", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotEqualTo(String value) {
            addCriterion("member_guid <>", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidGreaterThan(String value) {
            addCriterion("member_guid >", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidGreaterThanOrEqualTo(String value) {
            addCriterion("member_guid >=", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLessThan(String value) {
            addCriterion("member_guid <", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLessThanOrEqualTo(String value) {
            addCriterion("member_guid <=", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLike(String value) {
            addCriterion("member_guid like", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotLike(String value) {
            addCriterion("member_guid not like", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidIn(List<String> values) {
            addCriterion("member_guid in", values, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotIn(List<String> values) {
            addCriterion("member_guid not in", values, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidBetween(String value1, String value2) {
            addCriterion("member_guid between", value1, value2, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotBetween(String value1, String value2) {
            addCriterion("member_guid not between", value1, value2, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidIsNull() {
            addCriterion("doctor_guid is null");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidIsNotNull() {
            addCriterion("doctor_guid is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidEqualTo(String value) {
            addCriterion("doctor_guid =", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidNotEqualTo(String value) {
            addCriterion("doctor_guid <>", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidGreaterThan(String value) {
            addCriterion("doctor_guid >", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidGreaterThanOrEqualTo(String value) {
            addCriterion("doctor_guid >=", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidLessThan(String value) {
            addCriterion("doctor_guid <", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidLessThanOrEqualTo(String value) {
            addCriterion("doctor_guid <=", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidLike(String value) {
            addCriterion("doctor_guid like", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidNotLike(String value) {
            addCriterion("doctor_guid not like", value, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidIn(List<String> values) {
            addCriterion("doctor_guid in", values, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidNotIn(List<String> values) {
            addCriterion("doctor_guid not in", values, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidBetween(String value1, String value2) {
            addCriterion("doctor_guid between", value1, value2, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andDoctorGuidNotBetween(String value1, String value2) {
            addCriterion("doctor_guid not between", value1, value2, "doctorGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidIsNull() {
            addCriterion("prescription_guid is null");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidIsNotNull() {
            addCriterion("prescription_guid is not null");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidEqualTo(String value) {
            addCriterion("prescription_guid =", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidNotEqualTo(String value) {
            addCriterion("prescription_guid <>", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidGreaterThan(String value) {
            addCriterion("prescription_guid >", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidGreaterThanOrEqualTo(String value) {
            addCriterion("prescription_guid >=", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidLessThan(String value) {
            addCriterion("prescription_guid <", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidLessThanOrEqualTo(String value) {
            addCriterion("prescription_guid <=", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidLike(String value) {
            addCriterion("prescription_guid like", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidNotLike(String value) {
            addCriterion("prescription_guid not like", value, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidIn(List<String> values) {
            addCriterion("prescription_guid in", values, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidNotIn(List<String> values) {
            addCriterion("prescription_guid not in", values, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidBetween(String value1, String value2) {
            addCriterion("prescription_guid between", value1, value2, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andPrescriptionGuidNotBetween(String value1, String value2) {
            addCriterion("prescription_guid not between", value1, value2, "prescriptionGuid");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataIsNull() {
            addCriterion("subjectivity_data is null");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataIsNotNull() {
            addCriterion("subjectivity_data is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataEqualTo(String value) {
            addCriterion("subjectivity_data =", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataNotEqualTo(String value) {
            addCriterion("subjectivity_data <>", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataGreaterThan(String value) {
            addCriterion("subjectivity_data >", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataGreaterThanOrEqualTo(String value) {
            addCriterion("subjectivity_data >=", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataLessThan(String value) {
            addCriterion("subjectivity_data <", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataLessThanOrEqualTo(String value) {
            addCriterion("subjectivity_data <=", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataLike(String value) {
            addCriterion("subjectivity_data like", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataNotLike(String value) {
            addCriterion("subjectivity_data not like", value, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataIn(List<String> values) {
            addCriterion("subjectivity_data in", values, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataNotIn(List<String> values) {
            addCriterion("subjectivity_data not in", values, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataBetween(String value1, String value2) {
            addCriterion("subjectivity_data between", value1, value2, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andSubjectivityDataNotBetween(String value1, String value2) {
            addCriterion("subjectivity_data not between", value1, value2, "subjectivityData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataIsNull() {
            addCriterion("objective_data is null");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataIsNotNull() {
            addCriterion("objective_data is not null");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataEqualTo(String value) {
            addCriterion("objective_data =", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataNotEqualTo(String value) {
            addCriterion("objective_data <>", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataGreaterThan(String value) {
            addCriterion("objective_data >", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataGreaterThanOrEqualTo(String value) {
            addCriterion("objective_data >=", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataLessThan(String value) {
            addCriterion("objective_data <", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataLessThanOrEqualTo(String value) {
            addCriterion("objective_data <=", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataLike(String value) {
            addCriterion("objective_data like", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataNotLike(String value) {
            addCriterion("objective_data not like", value, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataIn(List<String> values) {
            addCriterion("objective_data in", values, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataNotIn(List<String> values) {
            addCriterion("objective_data not in", values, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataBetween(String value1, String value2) {
            addCriterion("objective_data between", value1, value2, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andObjectiveDataNotBetween(String value1, String value2) {
            addCriterion("objective_data not between", value1, value2, "objectiveData");
            return (Criteria) this;
        }

        public Criteria andHealthAssessIsNull() {
            addCriterion("health_assess is null");
            return (Criteria) this;
        }

        public Criteria andHealthAssessIsNotNull() {
            addCriterion("health_assess is not null");
            return (Criteria) this;
        }

        public Criteria andHealthAssessEqualTo(String value) {
            addCriterion("health_assess =", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessNotEqualTo(String value) {
            addCriterion("health_assess <>", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessGreaterThan(String value) {
            addCriterion("health_assess >", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessGreaterThanOrEqualTo(String value) {
            addCriterion("health_assess >=", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessLessThan(String value) {
            addCriterion("health_assess <", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessLessThanOrEqualTo(String value) {
            addCriterion("health_assess <=", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessLike(String value) {
            addCriterion("health_assess like", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessNotLike(String value) {
            addCriterion("health_assess not like", value, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessIn(List<String> values) {
            addCriterion("health_assess in", values, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessNotIn(List<String> values) {
            addCriterion("health_assess not in", values, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessBetween(String value1, String value2) {
            addCriterion("health_assess between", value1, value2, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHealthAssessNotBetween(String value1, String value2) {
            addCriterion("health_assess not between", value1, value2, "healthAssess");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanIsNull() {
            addCriterion("heslth_plan is null");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanIsNotNull() {
            addCriterion("heslth_plan is not null");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanEqualTo(String value) {
            addCriterion("heslth_plan =", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanNotEqualTo(String value) {
            addCriterion("heslth_plan <>", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanGreaterThan(String value) {
            addCriterion("heslth_plan >", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanGreaterThanOrEqualTo(String value) {
            addCriterion("heslth_plan >=", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanLessThan(String value) {
            addCriterion("heslth_plan <", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanLessThanOrEqualTo(String value) {
            addCriterion("heslth_plan <=", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanLike(String value) {
            addCriterion("heslth_plan like", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanNotLike(String value) {
            addCriterion("heslth_plan not like", value, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanIn(List<String> values) {
            addCriterion("heslth_plan in", values, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanNotIn(List<String> values) {
            addCriterion("heslth_plan not in", values, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanBetween(String value1, String value2) {
            addCriterion("heslth_plan between", value1, value2, "heslthPlan");
            return (Criteria) this;
        }

        public Criteria andHeslthPlanNotBetween(String value1, String value2) {
            addCriterion("heslth_plan not between", value1, value2, "heslthPlan");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}